
import Tabbar from '../components/Tabbar'
import RouterView from '../router/RouterView'
import React, { Component } from 'react';
class index extends Component {
    render() {
        //从属性中解构出子路由表
        var { routes } = this.props;

        return (
            <div className='index'>
                {/* 动态渲染二级路由规则 */}
                <RouterView routes={routes}></RouterView>

                {/* Tabbar */}
                <Tabbar></Tabbar>

            </div>
        );
    }
}

export default index;